home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2000 June (IDG) / Macworld_June_2000.iso / Shareware World / Comms & Internet / Analog 4.1 / examples / virtdoms.cfg < prev    next >
Encoding:
Text File  |  2000-03-30  |  1.9 KB  |  38 lines  |  [TEXT/ttxt]

  1. # THIS CONFIGURATION FILE IS NOT READY TO USE WITHOUT EDITING!
  2. # USE ONLY THE FIRST OR THE SECOND HALF OF THIS FILE!
  3. #
  4. # There are basically two ways to set up your web server if you are serving
  5. # lots of virtual domains. The first, which is usually better if you don't
  6. # have many virtual domains, is to log them all to different logfiles. Then
  7. # you can analyse each single domain independently. If you do this, but also
  8. # want to analyse them all together sometimes, you will need commands like
  9. LOGFILE domain1.log http://www.domain1.com
  10. LOGFILE domain2.log http://www.domain2.com
  11. # This will add the prefix for that domain to the filenames in that logfile,
  12. # so that the same filename in two domains doesn't get confused. The command
  13. SUBDIR http://*/*
  14. # is useful make the Directory Report look better.
  15. #
  16. # The second way to set up your server is to log all the domains to one
  17. # logfile. If you do this, you have to log the virtual domain name on each
  18. # line so that you know which domain that line belongs to. You will then
  19. # probably need a LOGFORMAT command. For example, if you log the virtual
  20. # domain at the beginning of the line, which is otherwise in combined format,
  21. # you would want a LOGFORMAT command like
  22. LOGFORMAT (%v %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f" "%B")
  23. # You still need to add the prefix for the domain to each filename, and you
  24. # can do this by a LOGFILE command like
  25. LOGFILE alldomains.log http://www.%v.com
  26. # Then you can go ahead and analyse the whole site. As above, you will want
  27. # the command
  28. SUBDIR http://*/*
  29. # If you want to analyse just one of the domains, say domain1, you need the
  30. # command
  31. VHOSTINCLUDE domain1
  32. # Alternatively, if you often want to analyse just one of the domains, first
  33. # split the logfile into pieces corresponding to each virtual domain. This 
  34. # avoids the need to pass through the whole logfile each time.
  35. #
  36. # By Stephen Turner 1999. No warranty for this file.
  37. # May be used and redistributed without restriction.
  38.